<?php
include_once 'fckeditor/fckeditor.php';
$sBasePath = $_SERVER['PHP_SELF'];
$sBasePath = dirname($sBasePath).'/fckeditor/';
$ed=new FCKeditor('newsContent');
$ed->BasePath=$sBasePath;
$ed->Height=300;
$ed->Width='100%';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
input{
	color:#3CC;
	width:200px;
	height:20px;
	}
-->
</style>
<script src="js/comment.js" type="text/javascript"></script>
<script type="text/javascript">
function submitForm()
{
	if(document.getElementById("newsTitle").value=="")
	{
		alert("新闻标题不能为空！");
		document.getElementById("newsTitle").focus();
		}
		else if(document.getElementById("newsDepartment").value=="")
		{
			alert("发布新闻的部门不能为空！");
			document.getElementById("newsDepartment").focus();
			}
		else
		{
			document.getElementById("newsForm").submit();
			}
	}
</script>
</head>

<body style="text-align:center;">
<center>

<fieldset  style=" width:1110px;">
<legend><img src="images/311.gif"/>&nbsp;<span style="color:#333; font-size:15px; font-weight:bold;">添加新闻</span></legend>
<form action="admin_core/control.php?action=addNews" method="post" id="newsForm"> 
<table width="100%">
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">输入新闻标题：</td>
<td align="left" width="88%">
<input name="newsTitle" id="newsTitle" type="text" onfocus="lightBorder(this)" />

</td>
</tr>
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">发布新闻的部门：</td>
<td align="left" width="88%">
<input name="newsDepartment" id="newsDepartment" type="text" onfocus="lightBorder(this)"  />

</td>
</tr>
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">输入新闻内容：</td>
<td align="left">
<?php 
$ed->Create();
?>
</td>
</tr>
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">

</td>
<td align="left">
<input type="button" value=" 添 加 "  id="submitid"  onclick="submitForm()"  onmousemove="changeButton(this,'url(images/61.gif)','#fff')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;" onmouseout="changeButton(this,'url(images/40.gif)','#09C')" />
<input type="reset" value=" 重 置 "  onmousemove="changeButton(this,'url(images/61.gif)','#fff')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;" onmouseout="changeButton(this,'url(images/40.gif)','#09C')" />
</td>
</tr>
</table>
</form>
</fieldset>
</center>
</body>
</html>
